$.fn.readLocalStorage = function(id){
			//Get the data from Local Storage
				return localStorage.getItem(id);
		};

$.fn.writeLocalStorage = function(id,fromjson){
			//Write data to Local Storage.
			try
			{
				localStorage.setItem(id,fromjson);
			}
			catch(err)
			{
				alert('Ouch ' + err);
			}
		};